<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>属性一览页面</title>
<link href="css/jimu.css" type="text/css" rel="stylesheet">
<script type="text/javascript">
	function comfirmDel(str){
		 return confirm(str);   
	}
</script>
</head>
<body>
<!-- 头部的包含文件 -->
<%@include file="../common/head.jsp" %>
<table class="main">
	<tr>
		<td style="width:180px; vertical-align:top;">
		<%@ include file="../common/menu.jsp" %>
		</td>
		<td style="vertical-align:top;padding:20px;">
			<p>属性一览：</p>
			<%-- list=${requestScope.attrList } --%>
			<table class="listTbl">
				<tr>
					<th>属性编号</th>
					<th>属性大分类</th>
					<th>属性小分类</th>
					<th>属性名称</th>
					<th>属性值</th>
					<th>操作</th>
				</tr>
				
				<s:iterator value="attrList">
				<tr>
					<td style="text-align:center;"><s:property value="attrid"/></td>
					<td>
						<!-- 大分类名 -->
						<s:property value="subType.supertype.typename"/>
					</td>
					<td>
						<!-- 小分类名 -->
						<s:property value="subType.subtypename"/>
					</td>
					<td>
						<s:property value="attrname"/>
					</td>
					<td style="text-align:left;">
						<s:property value="attrvalue"/>
					</td>
					<td style="text-align:center;">
						<a href="delAttr.action?attrid=<s:property value="attrid"/>" onClick="return comfirmDel('确定要删除吗？');">删除</a>
					</td>
				</tr>
				</s:iterator>
				
			</table>
			<a href="toaddAttr.action">添加属性</a>
			
		</td>
	</tr>
</table>

<%@include file="../common/tail.jsp" %>
</body></html>